package com.atcx.exception;

/**
 * Copyright (C), 2017-2022, MIDOU
 * ClassName: AtcxException
 * Author:   pangshu
 * Date:     2022/7/21 17:28
 * Version: 1.0
 * Description:
 */
public class AtcxException extends Exception{
    private String errorCode;
    private String message;
    private String iconImage;

    public AtcxException(String errorCode) {
        this.errorCode = errorCode;
    }

    public AtcxException() {
    }

    public AtcxException(String errorCode, String message, String iconImage) {
        this.errorCode = errorCode;
        this.message = message;
        this.iconImage = iconImage;
    }

    public AtcxException(String errorCode, String message) {
        this.errorCode = errorCode;
        this.message = message;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getIconImage() {
        return iconImage;
    }

    public void setIconImage(String iconImage) {
        this.iconImage = iconImage;
    }

    @Override
    public String toString() {
        return "AtcxException{" +
                "errorCode='" + errorCode + '\'' +
                ", message='" + message + '\'' +
                ", iconImage='" + iconImage + '\'' +
                '}';
    }
}
